window.JCAT.SOAP.XMLHttp = function ()
{
}

window.JCAT.SOAP.XMLHttp.CreateHTTP = function ()
{
	var aXMLHttp = null; 
	if (window.XMLHttpRequest)
	{ 
		aXMLHttp = new XMLHttpRequest(); 
	} 
	if (!aXMLHttp&&window.ActiveXObject) 
	{ 
	    try 
	    { 
	        aXMLHttp = new ActiveXObject("Msxml2.XMLHTTP.5.0") 
	    } 
	    catch(e) 
	    { 
	        try 
	        { 
	            aXMLHttp = new ActiveXObject("Msxml2.XMLHTTP.4.0") 
	        } 
	        catch(e) 
	        { 
	            try 
	            { 
	                aXMLHttp = new ActiveXObject("Msxml2.XMLHTTP") 
	            } 
	            catch(e) 
	            { 
					try
					{
						aXMLHttp = new ActiveXObject("Microsoft.XMLHTTP")
					}
					catch(e)
					{
						alert("The Browser Not Support XMLHttp。");
					} 
	            } 
	        } 
	    } 
	}
	
	return aXMLHttp ;
}

window.JCAT.SOAP.XMLHttp.CreateDOM = function ()
{
	// code for IE
	if (window.ActiveXObject)
	{
		return new ActiveXObject("Microsoft.XMLDOM");
	}
	
	// code for Mozilla, etc.
	else if(document.implementation && document.implementation.createDocument)
	{
		return document.implementation.createDocument("","",null);
	}
}